#ifndef __VOL_MAILSLOT_WRAPPER_H__
#define __VOL_MAILSLOT_WRAPPER_H__

class CMailslot
{

public:
    CMailslot();
    ~CMailslot();
    DWORD m_dwMaxMessageSize;

private:
    HANDLE hMailsolt;
    HANDLE hFile;

public:
    BOOL Create(LPCTSTR lpMailsoltName, DWORD dwMaxMessageSize);
    BOOL Open(LPCTSTR lpServerName, LPCTSTR lpMailsoltName);
    BOOL Read(LPVOID lpBuffer, LPDWORD lpBufSize, LPDWORD lpReadSize);
    BOOL Write(PVOID pvData, DWORD dwSize);
    VOID Close();
};
#endif //__VOL_MAILSLOT_WRAPPER_H__